﻿using PivotCollectionTools.BasicCollection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace PivotCollectionTools.BasicCollection.Tests
{
    
    
    /// <summary>
    ///This is a test class for PivotCollection_ItemTest and is intended
    ///to contain all PivotCollection_ItemTest Unit Tests
    ///</summary>
    [TestClass()]
    public class PivotCollection_ItemTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Name
        ///</summary>
        public void NameTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item); // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Name;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void NameTest()
        {
            NameTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Image
        ///</summary>
        public void ImageTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item); // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Image;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ImageTest()
        {
            ImageTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Id
        ///</summary>
        public void IdTestHelper<T>()
            where T : class
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            PivotCollection_Accessor<T>.Item target = new PivotCollection_Accessor<T>.Item(param0); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.Id = expected;
            actual = target.Id;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.BasicCollection.dll")]
        public void IdTest()
        {
            IdTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Href
        ///</summary>
        public void HrefTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item); // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Href;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void HrefTest()
        {
            HrefTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Description
        ///</summary>
        public void DescriptionTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item); // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Description;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void DescriptionTest()
        {
            DescriptionTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for grabFacets
        ///</summary>
        public void grabFacetsTestHelper<T>()
            where T : class
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            PivotCollection_Accessor<T>.Item target = new PivotCollection_Accessor<T>.Item(param0); // TODO: Initialize to an appropriate value
            target.grabFacets();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.BasicCollection.dll")]
        public void grabFacetsTest()
        {
            grabFacetsTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for CreateFacets
        ///</summary>
        public void CreateFacetsTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item); // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet[] collectionFacets = null; // TODO: Initialize to an appropriate value
            target.CreateFacets(collectionFacets);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void CreateFacetsTest()
        {
            CreateFacetsTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for CollectItem
        ///</summary>
        public void CollectItemTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.CollectItem();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void CollectItemTest()
        {
            CollectItemTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Item Constructor
        ///</summary>
        public void PivotCollection_ItemConstructorTestHelper<T>()
            where T : class
        {
            int id = 0; // TODO: Initialize to an appropriate value
            T item = null; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Item target = new PivotCollection<T>.Item(id, item);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void PivotCollection_ItemConstructorTest()
        {
            PivotCollection_ItemConstructorTestHelper<GenericParameterHelper>();
        }
    }
}
